// vite.config.ts
import { defineConfig } from "file:///Users/lz/Desktop/@wr/test-build/vite-project/node_modules/.pnpm/vite@5.4.3/node_modules/vite/dist/node/index.js";
import { vitePlugin } from "file:///Users/lz/Desktop/@wr/ww/packages/vite/dist/index.js";
import { visualizer } from "file:///Users/lz/Desktop/@wr/test-build/vite-project/node_modules/.pnpm/rollup-plugin-visualizer@5.12.0_rollup@4.21.2/node_modules/rollup-plugin-visualizer/dist/plugin/index.js";

// src/routes.ts
var routes_default = [
  {
    path: "/a",
    element: "@/a1.tsx",
    access: "wew"
  },
  {
    path: "/app",
    element: "@/app.tsx",
    access: "222"
  },
  {
    path: "/h1",
    element: "@/h1.tsx",
    access: "222"
  },
  {
    path: "/h2",
    element: "@/h2.tsx",
    access: "222"
  }
];

// vite.config.ts
var vite_config_default = defineConfig({
  plugins: [
    vitePlugin({
      routes: routes_default
    }),
    visualizer()
    //   cndImport({
    //   modules: [{
    //     name: 'react',
    //     var: 'React',
    //     path: 'https://unpkg.com/react@18.3.1/umd/react.production.min.js'
    //   }, {
    //     name: 'react-dom',
    //     var: 'ReactDOM',
    //     path: 'https://unpkg.com/react-dom@18.3.1/umd/react-dom.production.min.js'
    //     }]
    // })
  ],
  resolve: {
    alias: {
      "@": "/src/",
      qps: "/src/.qps/exports.ts"
    }
  },
  build: {
    assetsDir: "",
    minify: false,
    rollupOptions: {
      output: {
        entryFileNames: `index.js`,
        assetFileNames(chunkInfo) {
          if (chunkInfo.name?.includes("css")) {
            return `index.css`;
          }
          return chunkInfo.name || "";
        }
      }
    },
    cssCodeSplit: false
  }
});
export {
  vite_config_default as default
};
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsidml0ZS5jb25maWcudHMiLCAic3JjL3JvdXRlcy50cyJdLAogICJzb3VyY2VzQ29udGVudCI6IFsiY29uc3QgX192aXRlX2luamVjdGVkX29yaWdpbmFsX2Rpcm5hbWUgPSBcIi9Vc2Vycy9sei9EZXNrdG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